﻿import QtQuick 2.0

Rectangle {
    id:itemNPAOverView
    width: 1000
    height: 720
    PictureViewer{
        id:pictureViewerItem
        anchors.fill: parent
        onClose:function(){
            itemNPAOverView.visible = false
        }
    }
    property var show: function(vis){
        if(vis){
            var data = app.slotGetHNOverViewInfo();
            if(data.length <= 0) return
            pictureViewerItem.clearPicture();
            for(var i = 0; i< data.length-1;i+=2){
                var t = data[i];
                var p = data[i+1];
                pictureViewerItem.addPicture(p,t)
            }
            pictureViewerItem.show()
            itemNPAOverView.visible = true
            pictureViewerItem.visible= true
        }
        else{
            pictureViewerItem.clearPicture()
            itemNPAOverView.visible = false
        }
    }
}

